{/* LAYOUT模板 */}
	<layout name="login_layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}	
	<css href="__THEMES__/css/style.css" />
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
{/* import js,css */}

<!--当前位置 end-->
<div class="block box">
	<div id="ur_here">
		<include file="Library:ur_here"/>
	</div>
</div>
<!--当前位置 end-->


<div class="blank"></div>
<div class="block clearfix">

<!--left start-->
<div class="AreaL">
	<div class="box">
		<div class="box_1">
			<div class="userCenterBox">
				<include file="User:user_menu"/>
			</div>
		</div>
	</div>
</div>
<!--left end-->

<!--right start-->
<div class="AreaR">
	<div class="box">
	<div class="box_1">
	<div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
		 
	<!-- 用户信息界面 start-->
		<if condition="$action eq 'profile'">
			<h5>
				<span>{$lang.profile}</span>
			</h5>
			<div class="blank"></div>
			<form name="formEdit" action="user.php" method="post" onSubmit="return userEdit()">
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr>
						<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.birthday}： </td>
						<td width="72%" align="left" bgcolor="#FFFFFF"> 
							<!--时间日期-->
							<select name="birthdayYear">
								<for start="1954" end="2015" step="1">
									<option value='{$i}'>{$i}</option>		
								</for>
							</select>
							<select name="birthdayMonth">
								<for start="1" end="13" step="1">
									<option value='{$i}'>{$i}</option>		
								</for>
							</select>
							<select name="birthdayDay">
								<for start="1" end="32" step="1">
									<option value='{$i}'>{$i}</option>		
								</for>
							</select>
							<!--时间日期-->
						</td>
					</tr>
					<tr>
						<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.sex}： </td>
						<td width="72%" align="left" bgcolor="#FFFFFF">
							<input type="radio" name="sex" value="0" <if condition="$profile['sex'] eq 0">checked="checked"</if> />
							{$lang.secrecy}&nbsp;&nbsp;
							<input type="radio" name="sex" value="1" <if condition="$profile['sex'] eq 1">checked="checked"</if> />
							{$lang.male}&nbsp;&nbsp;
							<input type="radio" name="sex" value="2" <if condition="$profile['sex'] eq 2">checked="checked"</if> />
							{$lang.female}&nbsp;&nbsp; 
						</td>
					</tr>
					<tr>
						<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.email}： </td>
						<td width="72%" align="left" bgcolor="#FFFFFF">
							<input name="email" type="text" value="{$profile.email}" size="25" class="inputBg" />
							<span style="color:#FF0000"> *</span>
						</td>
					</tr>
					<volist name="extend_info_list" id="field">
					<if condition="$field['id'] eq 6">
						<tr>
							<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.passwd_question}：</td>
							<td width="72%" align="left" bgcolor="#FFFFFF">
								<select name='sel_question'>
									<option value='0'>{$lang.sel_question}</option>			  
								</select>
							</td>
						</tr>
						<tr>
							<td width="28%" align="right" bgcolor="#FFFFFF" <if condition="$field['i_need']">id="passwd_quesetion"</if> >
								{$lang.passwd_answer}：
							</td>
							<td width="72%" align="left" bgcolor="#FFFFFF">
								<input name="passwd_answer" type="text" size="25" class="inputBg" maxlengt='20' value="{$profile.passwd_answer}"/>
								<if condition="$field['is_need']">
									<span style="color:#FF0000"> *</span>
								</if>
							</td>
						</tr>
					<else/>
						<tr>
							<td width="28%" align="right" bgcolor="#FFFFFF" <if condition="$field['is_need']">id="extend_field{$field.id}i"</if> >
								{$field.reg_field_name}：
							</td>
							<td width="72%" align="left" bgcolor="#FFFFFF">
								<input name="extend_field{$field.id}" type="text" class="inputBg" value="{$field.content}"/>
								<if condition="$field['is_need']">
									<span style="color:#FF0000"> *</span>
								</if>
							</td>
						</tr>
					</if>
					</volist>
					<tr>
						<td colspan="2" align="center" bgcolor="#FFFFFF">
							<input name="act" type="hidden" value="act_edit_profile" />
							<input name="submit" type="submit" value="确定" class="bnt_blue_1" style="border:none;" />
						</td>
					</tr>
				</table>
			</form>
			<form name="formPassword" action="user.php" method="post" onSubmit="return editPassword()" >
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr>
						<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.old_password}：</td>
						<td width="76%" align="left" bgcolor="#FFFFFF">
							<input name="old_password" type="password" size="25"  class="inputBg" />
						</td>
					</tr>
					<tr>
						<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.new_password}：</td>
						<td align="left" bgcolor="#FFFFFF">
							<input name="new_password" type="password" size="25"  class="inputBg" />
						</td>
					</tr>
					<tr>
						<td width="28%" align="right" bgcolor="#FFFFFF">{$lang.confirm_password}：</td>
						<td align="left" bgcolor="#FFFFFF">
							<input name="comfirm_password" type="password" size="25"  class="inputBg" />
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center" bgcolor="#FFFFFF">
							<input name="act" type="hidden" value="act_edit_password" />
							<input name="submit" type="submit" class="bnt_blue_1" style="border:none;" value="确定" />
						</td>
					</tr>
				</table>
			</form>
		</if>
	<!--#用户信息界面 end-->
		
	<!-- 用户的红包列表 start-->
		<if condition="$action eq 'bonus'">
			<h5>
				<span>{$lang.label_bonus}</span>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr>
				  <th align="center" bgcolor="#FFFFFF">{$lang.bonus_sn}</th>
				  <th align="center" bgcolor="#FFFFFF">{$lang.bonus_name}</th>
				  <th align="center" bgcolor="#FFFFFF">{$lang.bonus_amount}</th>
				  <th align="center" bgcolor="#FFFFFF">{$lang.min_goods_amount}</th>
				  <th align="center" bgcolor="#FFFFFF">{$lang.bonus_end_date}</th>
				  <th align="center" bgcolor="#FFFFFF">{$lang.bonus_status}</th>
				</tr>
				<if condition="$bonus">
					<volist name="bonus" id="item">
					<tr>
					  <td align="center" bgcolor="#FFFFFF">{$item.bonus_sn}</td>
					  <td align="center" bgcolor="#FFFFFF">{$item.type_name}</td>
					  <td align="center" bgcolor="#FFFFFF">{$item.type_money}</td>
					  <td align="center" bgcolor="#FFFFFF">{$item.min_goods_amount}</td>
					  <td align="center" bgcolor="#FFFFFF">{$item.use_enddate}</td>
					  <td align="center" bgcolor="#FFFFFF">{$item.status}</td>
					</tr>
					</volist>
				<else/>
					<tr>
					  <td colspan="6" bgcolor="#FFFFFF">{$lang.user_bonus_empty}</td>
					</tr>
				</if>
			</table>
			
			<h5>
				<span>{$lang.add_bonus}</span>
			</h5>
			<div class="blank"></div>
			<form name="addBouns" action="user.php" method="post" onSubmit="return addBonus()">
				<div style="padding: 15px;">
					{$lang.bonus_number}
					<input name="bonus_sn" type="text" size="30" class="inputBg" />
					<input type="hidden" name="act" value="act_add_bonus" class="inputBg" />
					<input type="submit" class="bnt_blue_1" style="border:none;" value="{$lang.add_bonus}" />
				</div>
			</form>
		</if>	
	<!--用户红包结束-->
	
	<!--#订单列表界面 start-->
		<if condition="$action eq 'order_list'">
			<h5>
				<span>{$lang.label_order}</span>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr align="center">
					<td bgcolor="#ffffff">{$lang.order_number}</td>
					<td bgcolor="#ffffff">{$lang.order_addtime}</td>
					<td bgcolor="#ffffff">{$lang.order_money}</td>
					<td bgcolor="#ffffff">{$lang.order_status}</td>
					<td bgcolor="#ffffff">{$lang.handle}</td>
				</tr>
				<volist name="$orders" id="item">
				<tr>
					<td align="center" bgcolor="#ffffff">
						<a href="user.php?act=order_detail&order_id={$item.order_id}" class="f6">{$item.order_sn}</a>
					</td>
					<td align="center" bgcolor="#ffffff">{$item.order_time}</td>
					<td align="right" bgcolor="#ffffff">{$item.total_fee}</td>
					<td align="center" bgcolor="#ffffff">{$item.order_status}</td>
					<td align="center" bgcolor="#ffffff">
						<font class="f6">{$item.handler}</font>
					</td>
				</tr>
				</volist>
			</table>
			
			<h5>
				<span>{$lang.merge_order}</span>
			</h5>
			<div class="blank"></div>
			<form action="user.php" method="post" name="formOrder" onsubmit="return mergeOrder()">
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr>
						<td width="22%" align="right" bgcolor="#ffffff">{$lang.first_order}:</td>
						<td width="12%" align="left" bgcolor="#ffffff">
							<select name="to_order">
								<option value="0">{$lang.select}</option>
								{html_options options=$merge}
							</select>
						</td>
						<td width="19%" align="right" bgcolor="#ffffff">{$lang.second_order}:</td>
						<td width="11%" align="left" bgcolor="#ffffff">
							<select name="from_order">
							<option value="0">{$lang.select}</option>
								{html_options options=$merge}
							</select>
						</td>
						<td width="36%" bgcolor="#ffffff">&nbsp;<input name="act" value="merge_order" type="hidden" />
							<input type="submit" name="Submit"  class="bnt_blue_1" style="border:none;"  value="{$lang.merge_order}" />
						</td>
					</tr>
					<tr>
						<td bgcolor="#ffffff">&nbsp;</td>
						<td colspan="4" align="left" bgcolor="#ffffff">{$lang.merge_order_notice}</td>
					</tr>
				</table>
			</form>
		</if>
	<!--#订单列表界面 end-->
	
	<!--#包裹状态查询界面 start-->
		<if condition="$action eq 'track_packages'">
			<h5>
				<span>{$lang.label_track_packages}</span>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="order_table">
				<tr align="center">
					<td bgcolor="#ffffff">{$lang.order_number}</td>
					<td bgcolor="#ffffff">{$lang.handle}</td>
				</tr>
				<volist name="orders" id="item">
				<tr>
					<td align="center" bgcolor="#ffffff">
						<a href="user.php?act=order_detail&order_id={$item.order_id}">{$item.order_sn}</a>
					</td>
					<td align="center" bgcolor="#ffffff">{$item.query_link}</td>
				</tr>			
				</volist>
			</table>
		</if>	
	<!--#包裹状态查询界面 end-->
	
	<!-- ==========订单详情页面,包括：订单状态，商品列表，费用总计，收货人信息，支付方式，其它信息========== -->
		<if condition="$action eq 'order_detail'">
			<h5>
				<span>{$lang.order_status}</span>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr>
					<td width="15%" align="right" bgcolor="#ffffff">{$lang.detail_order_sn}：</td>
					<td align="left" bgcolor="#ffffff">
						{$order.order_sn}
						<if condition="$order['extension_code'] eq 'group_buy'">
							<a href="./group_buy.php?act=view&id={$order.extension_id}" class="f6">
								<strong>{$lang.order_is_group_buy}</strong>
							</a>
						<elseif condition="$order['extension_code'] eq 'exchange_goods'"/>
							<a href="./exchange.php?act=view&id={$order.extension_id}" class="f6">
								<strong>{$lang.order_is_exchange}</strong>
							</a>
						</if>
						<a href="user.php?act=message_list&order_id={$order.order_id}" class="f6">[{$lang.business_message}]</a>
					</td>
				</tr>
				<tr>
					<td align="right" bgcolor="#ffffff">{$lang.detail_order_status}：</td>
					<td align="left" bgcolor="#ffffff">{$order.order_status}&nbsp;&nbsp;&nbsp;&nbsp;{$order.confirm_time}</td>
				</tr>
				<tr>
					<td align="right" bgcolor="#ffffff">{$lang.detail_pay_status}：</td>
					<td align="left" bgcolor="#ffffff">
						{$order.pay_status}&nbsp;&nbsp;&nbsp;&nbsp;
						<if condition="$order['order_amount'] gt 0">
							{$order.pay_online}
						</if>
						{$order.pay_time}
					</td>
				</tr>
				<tr>
					<td align="right" bgcolor="#ffffff">{$lang.detail_shipping_status}：</td>
					<td align="left" bgcolor="#ffffff">{$order.shipping_status}&nbsp;&nbsp;&nbsp;&nbsp;{$order.shipping_time}</td>
				</tr>		
				<if condition="$order['invoice_no']">
					<tr>
					  <td align="right" bgcolor="#ffffff">{$lang.consignment}：</td>
					  <td align="left" bgcolor="#ffffff">{$order.invoice_no}</td>
					</tr>
				</if>
				<if condition="$order['to_buyer']">
					<tr>
					  <td align="right" bgcolor="#ffffff">{$lang.detail_to_buyer}：</td>
					  <td align="left" bgcolor="#ffffff">{$order.to_buyer}</td>
					</tr>
				</if>
				<if condition="$virtual_card">
					<tr>
						<td align="right" bgcolor="#ffffff">{$lang.virtual_card_info}：</td>
						<td colspan="3" align="left" bgcolor="#ffffff">
						<volist name="virtual_card" id="vgoods">
							<volist name="$vgoods['info']" id="card">
								<if condition="$card['card_sn']">
									{$lang.card_sn}:<span style="color:red;">{$card.card_sn}</span>
								</if>
								<if condition="$card['card_password']">
									{$lang.card_password}:<span style="color:red;">{$card.card_password}</span>
								</if>
								<if condition="$card['end_date']">
									{$lang.end_date}:{$card.end_date}
								</if>
								<br/>
							</volist>
						</volist>
						</td>
					</tr>
				</if>
			</table>
			
			<div class="blank"></div>
			<h5>
				<span>{$lang.goods_list}</span>
				<if condition="$allow_to_cart">
					<a href="javascript:;" onclick="returnToCart({$order.order_id})" class="f6">{$lang.return_to_cart}</a>
				</if>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr>
					<th width="23%" align="center" bgcolor="#ffffff">{$lang.goods_name}</th>
					<th width="29%" align="center" bgcolor="#ffffff">{$lang.goods_attr}</th>
					<!--<th>{$lang.market_price}</th>-->
					<th width="26%" align="center" bgcolor="#ffffff">
						{$lang.goods_price}
						<if condition="$order['extension_code'] eq 'group_buy'">
							{$lang.gb_deposit}
						</if>
					</th>
					<th width="9%" align="center" bgcolor="#ffffff">{$lang.number}</th>
					<th width="20%" align="center" bgcolor="#ffffff">{$lang.subtotal}</th>
				</tr>
				<volist name="goods_list" id="goods">
				<tr>
					<td bgcolor="#ffffff">
						<if condition="$goods['goods_id'] gt 0 and $goods['extension_code'] neq 'package_buy'">
							<a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
							<if condition="$goods['parent_id'] gt 0">
								<span style="color:#FF0000">（{$lang.accessories}）</span>
							<elseif condition="$goods['is_gift']">
								<span style="color:#FF0000">（{$lang.largess}）</span>
							</if>
						<elseif condition="$goods['goods_id'] gt 0 and $goods['extension_code'] eq 'package_buy'">
							<a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6">
								{$goods.goods_name}<span style="color:#FF0000;">（礼包）</span>
							</a>
							<div id="suit_{$goods.goods_id}" style="display:none">
								<volist name="$goods['package_goods_list']" id="package_goods_list">
									<a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">
										{$package_goods_list.goods_name}
									</a>
									<br/>
								</volist>
							</div>
						</if>
					</td>
					<td align="left" bgcolor="#ffffff">{$goods.goods_attr}</td>
					<!--<td align="right">{$goods.market_price}</td>-->
					<td align="right" bgcolor="#ffffff">{$goods.goods_price}</td>
					<td align="center" bgcolor="#ffffff">{$goods.goods_number}</td>
					<td align="right" bgcolor="#ffffff">{$goods.subtotal}</td>
				</tr>
				</volist>
				<tr>
					<td colspan="8" bgcolor="#ffffff" align="right">
						{$lang.shopping_money}
						<if condition="$order['extension_code'] eq 'group_buy'"> {$lang.gb_deposit} </if>: {$order.formated_goods_amount}
					</td>
				</tr>
			</table>
			
			<div class="blank"></div>
			<h5>
				<span>{$lang.fee_total}</span>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr>
					<td align="right" bgcolor="#ffffff">
						{$lang.goods_all_price}
						<if condition="$order['extension_code'] eq 'group_buy'">
							{$lang.gb_deposit}
						</if>
						
						: {$order.formated_goods_amount}
						
						<if condition="$order['discount'] gt 0">
						- {$lang.discount}: {$order.formated_discount}
						</if>
						
						<if condition="$order['tax'] gt 0">
						+ {$lang.tax}: {$order.formated_tax}
						</if>
												
						<if condition="$order['shipping_fee'] gt 0">
						+ {$lang.shipping_fee}: {$order.formated_shipping_fee}						
						</if>
						
						<if condition="$order['insure_fee'] gt 0">
						+ {$lang.insure_fee}: {$order.formated_insure_fee}
						</if>
						
						<if condition="$order['pay_fee'] gt 0">
						+ {$lang.pay_fee}: {$order.formated_pay_fee}
						</if>
						
						<if condition="$order['pack_fee'] gt 0">
						+ {$lang.pack_fee}: {$order.formated_pack_fee}
						</if>
						
						<if condition="$order['card_fee'] gt 0">
						+ {$lang.card_fee}: {$order.formated_card_fee}
						</if>
					</td>
				</tr>
				<tr>
					<td align="right" bgcolor="#ffffff">
						<if condition="$order['money_paid'] gt 0">
						- {$lang.order_money_paid}: {$order.formated_money_paid}
						</if>
						
						<if condition="$order['surplus'] gt 0">
						- {$lang.use_surplus}: {$order.formated_surplus}
						</if>
						
						<if condition="$order['integral_money'] gt 0">
						- {$lang.use_integral}: {$order.formated_integral_money}
						</if>
						
						<if condition="$order['bonus']">
						- {$lang.use_bonus}: {$order.formated_bonus}
						</if>
					</td>
				</tr>
				<tr>
					<td align="right" bgcolor="#ffffff">
					{$lang.order_amount}: {$order.formated_order_amount}					
					<if condition="$order['extension_code'] eq 'group_buy'">
						<br/>
						{$lang.notice_gb_order_amount}
					</if>
					</td>
				</tr>
				<if condition="$allow_edit_surplus">
				<tr>
					<td align="right" bgcolor="#ffffff">
						<form action="user.php" method="post" name="formFee" id="formFee">
							{$lang.use_more_surplus}:
							<input name="surplus" type="text" size="8" value="0" style="border:1px solid #ccc;"/>{$max_surplus}
							<input type="submit" name="Submit" class="submit" value="{$lang.button_submit}" />
							<input type="hidden" name="act" value="act_edit_surplus" />
							<input type="hidden" name="order_id" value="{$smarty.get.order_id}" />
						</form>
					</td>
				</tr>
				</if>
			</table>
			<div class="blank"></div>
			<h5>
				<span>{$lang.consignee_info}</span>
			</h5>
			<div class="blank"></div>
			<if condition="$order['allow_update_address'] gt 0">
				<form action="user.php" method="post" name="formAddress" id="formAddress">
					<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
						<tr>
							<td width="15%" align="right" bgcolor="#ffffff">{$lang.consignee_name}： </td>
							<td width="35%" align="left" bgcolor="#ffffff"><input name="consignee" type="text"  class="inputBg" value="{$order.consignee}" size="25">
							</td>
							<td width="15%" align="right" bgcolor="#ffffff">{$lang.email_address}： </td>
							<td width="35%" align="left" bgcolor="#ffffff"><input name="email" type="text"  class="inputBg" value="{$order.email}" size="25" />
							</td>
						</tr>
						<if condition="$order['exist_real_goods']">
							<!-- 只有虚拟商品处理-->
							<tr>
								<td align="right" bgcolor="#ffffff">{$lang.detailed_address}： </td>
								<td align="left" bgcolor="#ffffff"><input name="address" type="text" class="inputBg" value="{$order.address} " size="25" /></td>
								<td align="right" bgcolor="#ffffff">{$lang.postalcode}：</td>
								<td align="left" bgcolor="#ffffff"><input name="zipcode" type="text"  class="inputBg" value="{$order.zipcode}" size="25" /></td>
							</tr>
						</if>
						<tr>
							<td align="right" bgcolor="#ffffff">{$lang.phone}：</td>
							<td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="inputBg" value="{$order.tel}" size="25" /></td>
							<td align="right" bgcolor="#ffffff">{$lang.backup_phone}：</td>
							<td align="left" bgcolor="#ffffff"><input name="mobile" type="text"  class="inputBg" value="{$order.mobile}" size="25" /></td>
						</tr>
						<if condition="$order['exist_real_goods']">
							<!-- 只有虚拟商品处理-->
							<tr>
								<td align="right" bgcolor="#ffffff">{$lang.sign_building}：</td>
								<td align="left" bgcolor="#ffffff">
									<input name="sign_building" class="inputBg" type="text" value="{$order.sign_building}" size="25" />
								</td>
								<td align="right" bgcolor="#ffffff">{$lang.deliver_goods_time}：</td>
								<td align="left" bgcolor="#ffffff">
									<input name="best_time" type="text" class="inputBg" value="{$order.best_time}" size="25" />
								</td>
							</tr>
						</if>
						<tr>
							<td colspan="4" align="center" bgcolor="#ffffff"><input type="hidden" name="act" value="save_order_address" />
							<input type="hidden" name="order_id" value="{$order.order_id}" />
							<input type="submit" class="bnt_blue_2" value="{$lang.update_address}"  />
							</td>
						</tr>
					</table>
				</form>
			<else/>
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr>
						<td width="15%" align="right" bgcolor="#ffffff">{$lang.consignee_name}：</td>
						<td width="35%" align="left" bgcolor="#ffffff">{$order.consignee}</td>
						<td width="15%" align="right" bgcolor="#ffffff" >{$lang.email_address}：</td>
						<td width="35%" align="left" bgcolor="#ffffff">{$order.email}</td>
					</tr>
					<if condition="$order['exist_real_goods']">
						<tr>
							<td align="right" bgcolor="#ffffff">{$lang.detailed_address}：</td>
							<td colspan="3" align="left" bgcolor="#ffffff">{$order.address}
								<if condition="$order['zipcode']">
									[{$lang.postalcode}: {$order.zipcode}]
								</if>
							</td>
						</tr>
					</if>
					<tr>
						<td align="right" bgcolor="#ffffff">{$lang.phone}：</td>
						<td align="left" bgcolor="#ffffff">{$order.tel} </td>
						<td align="right" bgcolor="#ffffff">{$lang.backup_phone}：</td>
						<td align="left" bgcolor="#ffffff">{$order.mobile}</td>
					</tr>					
					<if condition="$order['exist_real_goods']">
						<tr>
							<td align="right" bgcolor="#ffffff" >{$lang.sign_building}：</td>
							<td align="left" bgcolor="#ffffff">{$order.sign_building} </td>
							<td align="right" bgcolor="#ffffff" >{$lang.deliver_goods_time}：</td>
							<td align="left" bgcolor="#ffffff">{$order.best_time}</td>
						</tr>
					</if>
				</table>
			</if>
			
			<div class="blank"></div>
			<h5>
				<span>{$lang.payment}</span>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr>
					<td bgcolor="#ffffff">
						{$lang.select_payment}: {$order.pay_name}。{$lang.order_amount}: <strong>{$order.formated_order_amount}</strong><br />
						{$order.pay_desc}
					</td>
				</tr>
				<tr>
					<td bgcolor="#ffffff" align="right">
						<if condition="$payment_list">
							<form name="payment" method="post" action="user.php">
							{$lang.change_payment}:
							<select name="pay_id">
							<volist name="payment_list" id="payment">							
								<option value="{$payment.pay_id}">
									{$payment.pay_name}({$lang.pay_fee}:{$payment.format_pay_fee})
								</option>
							</volist>
							</select>
							<input type="hidden" name="act" value="act_edit_payment" />
							<input type="hidden" name="order_id" value="{$order.order_id}" />
							<input type="submit" name="Submit" class="submit" value="{$lang.button_submit}" />
							</form>
						</if>
					</td>
				</tr>
			</table>
			
			<div class="blank"></div>
			<h5>
				<span>{$lang.other_info}</span>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<if condition="$order['shipping_id'] gt 0">			
					<tr>
						<td width="15%" align="right" bgcolor="#ffffff">{$lang.shipping}：</td>
						<td colspan="3" width="85%" align="left" bgcolor="#ffffff">{$order.shipping_name}</td>
					</tr>
				</if>
				<tr>
					<td width="15%" align="right" bgcolor="#ffffff">{$lang.payment}：</td>
					<td colspan="3" align="left" bgcolor="#ffffff">{$order.pay_name}</td>
				</tr>
				<if condition="$order['pack_name']">
				<!--  是否使用包装 -->
					<tr>
					<td width="15%" align="right" bgcolor="#ffffff">{$lang.use_pack}：</td>
					<td colspan="3" align="left" bgcolor="#ffffff">{$order.pack_name}</td>
					</tr>
				</if>
				
				<if condition="$order['card_name']">
				<!--  是否使用贺卡 -->
					<tr>
					<td width="15%" align="right" bgcolor="#ffffff">{$lang.use_card}：</td>
					<td colspan="3" align="left" bgcolor="#ffffff">{$order.card_name}</td>
					</tr>
				</if>
				
				<if condition="$order['card_message']">
				<!--  是否使用贺卡 -->
					<tr>
					<td width="15%" align="right" bgcolor="#ffffff">{$lang.bless_note}：</td>
					<td colspan="3" align="left" bgcolor="#ffffff">{$order.card_message}</td>
					</tr>
				</if>
				
				<if condition="$order['integral'] gt 0">
				<!--  是否使用积分 -->
					<tr>
						<td width="15%" align="right" bgcolor="#ffffff">{$lang.use_integral}：</td>
						<td colspan="3" align="left" bgcolor="#ffffff">{$order.integral}</td>
					</tr>
				</if>
				
				<if condition="$order['inv_payee'] and $order['inv_content']">
				<!--  是否开发票 -->
					<tr>
						<td width="15%" align="right" bgcolor="#ffffff">{$lang.invoice_title}：</td>
						<td width="36%" align="left" bgcolor="#ffffff">{$order.inv_payee}</td>
						<td width="19%" align="right" bgcolor="#ffffff">{$lang.invoice_content}：</td>
						<td width="25%" align="left" bgcolor="#ffffff">{$order.inv_content}</td>
					</tr>
				</if>
				
				<if condition="$order['postscript']">
				<!-- 是否有订单附言 -->
					<tr>
						<td width="15%" align="right" bgcolor="#ffffff">{$lang.order_postscript}：</td>
						<td colspan="3" align="left" bgcolor="#ffffff">{$order.postscript}</td>
					</tr>
				</if>
				<tr>
					<td width="15%" align="right" bgcolor="#ffffff">{$lang.booking_process}：</td>
					<td colspan="3" align="left" bgcolor="#ffffff">{$order.how_oos_name}</td>
				</tr>
			</table>
		</if>
	<!--#订单详情页 end-->
		
		
	<!--#会员余额 start-->
		<if condition="$action eq 'account_raply' or $action eq 'account_log' or $action eq 'account_detail'">
		<!--{if $action eq "account_raply" || $action eq "account_log" || $action eq "account_deposit" || $action eq "account_detail"} -->
			<h5>
				<span>{$lang.user_balance}</span>
			</h5>
			<div class="blank"></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr>
					<td align="right" bgcolor="#ffffff">
						<a href="user.php?act=account_deposit" class="f6">{$lang.surplus_type_0}</a> 
						|
						<a href="user.php?act=account_raply" class="f6">{$lang.surplus_type_1}</a> 
						|
						<a href="user.php?act=account_detail" class="f6">{$lang.add_surplus_log}</a> 
						|
						<a href="user.php?act=account_log" class="f6">{$lang.view_application}</a> 
					</td>
				</tr>
			</table>
		</if>
	
	
	
		<if condition="$action eq 'account_raply'">
		<!-- {if $action eq "account_raply"} -->
			<form name="formSurplus" method="post" action="user.php" onSubmit="return submitSurplus()">
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr>
						<td width="15%" bgcolor="#ffffff">{$lang.repay_money}:</td>
						<td bgcolor="#ffffff" align="left">
							<input type="text" name="amount" value="{$order.amount}" class="inputBg" size="30" />
						</td>
					</tr>
					<tr>
						<td bgcolor="#ffffff">{$lang.process_notic}:</td>
						<td bgcolor="#ffffff" align="left">
							<textarea name="user_note" cols="55" rows="6" style="border:1px solid #ccc;">{$order.user_note}</textarea>
						</td>
					</tr>
					<tr>
						<td bgcolor="#ffffff" colspan="2" align="center">
							<input type="hidden" name="surplus_type" value="1" />
							<input type="hidden" name="act" value="act_account" />
							<input type="submit" name="submit"  class="bnt_blue_1" value="{$lang.submit_request}" />
							<input type="reset" name="reset" class="bnt_blue_1" value="{$lang.button_reset}" />
						</td>
					</tr>
				</table>
			</form>
		</if>
			
		<if condition="$action eq 'account_deposit'">
		<!-- {if $action eq "account_deposit"} -->
			<form name="formSurplus" method="post" action="user.php" onSubmit="return submitSurplus()">
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr>
						<td width="15%" bgcolor="#ffffff">{$lang.deposit_money}:</td>
						<td align="left" bgcolor="#ffffff">
							<input type="text" name="amount"  class="inputBg" value="{$order.amount}" size="30" />
						</td>
					</tr>
					<tr>
						<td bgcolor="#ffffff">{$lang.process_notic}:</td>
						<td align="left" bgcolor="#ffffff">
							<textarea name="user_note" cols="55" rows="6" style="border:1px solid #ccc;">{$order.user_note}</textarea>
						</td>
					</tr>
				</table>
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr align="center">
						<td bgcolor="#ffffff"  colspan="3" align="left">{$lang.payment}:</td>
					</tr>
					<tr align="center">
						<td bgcolor="#ffffff">{$lang.pay_name}</td>
						<td bgcolor="#ffffff" width="60%">{$lang.pay_desc}</td>
						<td bgcolor="#ffffff" width="17%">{$lang.pay_fee}</td>
					</tr>
					<volist name="payment" id="list">
						<tr>
							<td bgcolor="#ffffff" align="left">
							<input type="radio" name="payment_id" value="{$list.pay_id}" />{$list.pay_name}</td>
							<td bgcolor="#ffffff" align="left">{$list.pay_desc}</td>
							<td bgcolor="#ffffff" align="center">{$list.pay_fee}</td>
						</tr>
					</volist>
					<tr>
						<td bgcolor="#ffffff" colspan="3"  align="center">
						<input type="hidden" name="surplus_type" value="0" />
						<input type="hidden" name="rec_id" value="{$order.id}" />
						<input type="hidden" name="act" value="act_account" />
						<input type="submit" class="bnt_blue_1" name="submit" value="{$lang.submit_request}" />
						<input type="reset" class="bnt_blue_1" name="reset" value="{$lang.button_reset}" />
						</td>
					</tr>
				</table>
			</form>
		</if>
	
		<if condition="$action eq 'act_account'">
		<!-- {if $action eq "act_account"} -->	
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr>
					<td width="25%" align="right" bgcolor="#ffffff">{$lang.surplus_amount}</td>
					<td width="80%" bgcolor="#ffffff">{$amount}</td>
				</tr>
				<tr>
					<td align="right" bgcolor="#ffffff">{$lang.payment_name}</td>
					<td bgcolor="#ffffff">{$payment.pay_name}</td>
				</tr>
				<tr>
					<td align="right" bgcolor="#ffffff">{$lang.payment_fee}</td>
					<td bgcolor="#ffffff">{$pay_fee}</td>
				</tr>
				<tr>
					<td align="right" valign="middle" bgcolor="#ffffff">{$lang.payment_desc}</td>
					<td bgcolor="#ffffff">{$payment.pay_desc}</td>
				</tr>
				<tr>
					<td colspan="2" bgcolor="#ffffff">{$payment.pay_button}</td>
				</tr>
			</table>
		</if>
	
		<if condition="$action eq 'account_detail'">
		<!-- {if $action eq "account_detail"} -->
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr align="center">
					<td bgcolor="#ffffff">{$lang.process_time}</td>
					<td bgcolor="#ffffff">{$lang.surplus_pro_type}</td>
					<td bgcolor="#ffffff">{$lang.money}</td>
					<td bgcolor="#ffffff">{$lang.change_desc}</td>
				</tr>
				<volist name="account_log" id="item">		
				<tr>
					<td align="center" bgcolor="#ffffff">{$item.change_time}</td>
					<td align="center" bgcolor="#ffffff">{$item.type}</td>
					<td align="right" bgcolor="#ffffff">{$item.amount}</td>
					<td bgcolor="#ffffff" title="{$item.change_desc}">&nbsp;&nbsp;{$item.short_change_desc}</td>
				</tr>
				</volist>
				<tr>
					<td colspan="4" align="center" bgcolor="#ffffff"><div align="right">{$lang.current_surplus}{$surplus_amount}</div></td>
				</tr>
			</table>
		</if>
		
		<if condition="$action eq 'account_log'">
		<!-- {if $action eq "account_log"} -->
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr align="center">
					<td bgcolor="#ffffff">{$lang.process_time}</td>
					<td bgcolor="#ffffff">{$lang.surplus_pro_type}</td>
					<td bgcolor="#ffffff">{$lang.money}</td>
					<td bgcolor="#ffffff">{$lang.process_notic}</td>
					<td bgcolor="#ffffff">{$lang.admin_notic}</td>
					<td bgcolor="#ffffff">{$lang.is_paid}</td>
					<td bgcolor="#ffffff">{$lang.handle}</td>
				</tr>
				<volist name="account_log" id="item">
					<tr>
						<td align="center" bgcolor="#ffffff">{$item.add_time}</td>
						<td align="left" bgcolor="#ffffff">{$item.type}</td>
						<td align="right" bgcolor="#ffffff">{$item.amount}</td>
						<td align="left" bgcolor="#ffffff">{$item.short_user_note}</td>
						<td align="left" bgcolor="#ffffff">{$item.short_admin_note}</td>
						<td align="center" bgcolor="#ffffff">{$item.pay_status}</td>
						<td align="right" bgcolor="#ffffff">{$item.handle}
						<if condition="($item['is_paid'] eq 0 and $item['process_type']) or $item['handle']">
						<!-- {if ($item.is_paid eq 0 && $item.process_type eq 1) || $item.handle} -->
							<a href="user.php?act=cancel&id={$item.id}" onclick="if (!confirm('{$lang.confirm_remove_account}')) return false;">{$lang.is_cancel}</a>
						</if>
						</td>
					</tr>
				</volist>
				<tr>
					<td colspan="7" align="right" bgcolor="#ffffff">{$lang.current_surplus}{$surplus_amount}</td>
				</tr>
			</table>
		</if>
	<!--#会员余额 end-->
	
	
	<!--#收货地址页面 -->
	<if condition="$action eq 'address_list'">	
		<h5>
			<span>{$lang.consignee_info}</span>
		</h5>
		<div class="blank"></div>
			<volist name="consignee_list" id="consignee" key="sn">
			<form action="user.php" method="post" name="theForm" onsubmit="return checkConsignee(this)">
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr>
						<td align="right" bgcolor="#ffffff">{$lang.country_province}：</td>
						<td colspan="3" align="left" bgcolor="#ffffff">
							<select name="country" id="selCountries_{$sn}" onchange="region.changed(this, 1, 'selProvinces_{$sn}')">
								<option value="0">{$lang.please_select}{$name_of_region[0]}</option>
								<volist name="country_list" id="country">							
									<option value="{$country.region_id}" {if $consignee.country eq $country.region_id}selected{/if}>{$country.region_name}</option>
								</volist>
							</select>
							
							<select name="province" id="selProvinces_{$sn}" onchange="region.changed(this, 2, 'selCities_{$sn}')">
								<option value="0">{$lang.please_select}{$name_of_region[1]}</option>
								<volist name="$province_list[$sn]" id="province">
									<option value="{$province.region_id}" <if condition="$consignee['province'] eq $province['region_id']">selected</if> >
										{$province.region_name}
									</option>
								</volist>
							</select>
							
							<select name="city" id="selCities_{$sn}" onchange="region.changed(this, 3, 'selDistricts_{$sn}')">
								<option value="0">{$lang.please_select}{$name_of_region[2]}</option>
								<volist name="$city_list[$sn]" id="city">
									<option value="{$city.region_id}"  <if condition="$consignee['city'] eq $city['region_id']">selected</if> >
										{$city.region_name}
									</option>
								</volist>
							</select>
							
							<select name="district" id="selDistricts_{$sn}" {if !$district_list.$sn}style="display:none"{/if}>
								<option value="0">{$lang.please_select}{$name_of_region[3]}</option>
								<volist name="$district_list[$sn]" id="district">
									<option value="{$district.region_id}" <if condition="$consignee['district'] eq $district['region_id']">selected</if> >
										{$district.region_name}
									</option>
								</volist>
							</select>
							{$lang.require_field}
						</td>
					</tr>
					<tr>
						<td align="right" bgcolor="#ffffff">{$lang.consignee_name}：</td>
						<td align="left" bgcolor="#ffffff">
							<input name="consignee" type="text" class="inputBg" id="consignee_{$sn}" value="{$consignee.consignee}" />
							{$lang.require_field} 
						</td>
						<td align="right" bgcolor="#ffffff">{$lang.email_address}：</td>
						<td align="left" bgcolor="#ffffff">
							<input name="email" type="text" class="inputBg" id="email_{$sn}" value="{$consignee.email}" />
							{$lang.require_field}
						</td>
					</tr>
					<tr>
						<td align="right" bgcolor="#ffffff">{$lang.detailed_address}：</td>
						<td align="left" bgcolor="#ffffff"><input name="address" type="text" class="inputBg" id="address_{$sn}" value="{$consignee.address}" />
							{$lang.require_field}
						</td>
						<td align="right" bgcolor="#ffffff">{$lang.postalcode}：</td>
						<td align="left" bgcolor="#ffffff">
							<input name="zipcode" type="text" class="inputBg" id="zipcode_{$sn}" value="{$consignee.zipcode}" />
						</td>
					</tr>
					<tr>
						<td align="right" bgcolor="#ffffff">{$lang.phone}：</td>
						<td align="left" bgcolor="#ffffff">
							<input name="tel" type="text" class="inputBg" id="tel_{$sn}" value="{$consignee.tel}" />
							{$lang.require_field}
						</td>
						<td align="right" bgcolor="#ffffff">{$lang.backup_phone}：</td>
						<td align="left" bgcolor="#ffffff">
							<input name="mobile" type="text" class="inputBg" id="mobile_{$sn}" value="{$consignee.mobile}" />
						</td>
					</tr>
					<tr>
						<td align="right" bgcolor="#ffffff">{$lang.sign_building}：</td>
						<td align="left" bgcolor="#ffffff">
							<input name="sign_building" type="text" class="inputBg" id="sign_building_{$sn}" value="{$consignee.sign_building}" />
						</td>
						<td align="right" bgcolor="#ffffff">{$lang.deliver_goods_time}：</td>
						<td align="left" bgcolor="#ffffff">
							<input name="best_time" type="text"  class="inputBg" id="best_time_{$sn}" value="{$consignee.best_time}" />
						</td>
					</tr>
					<tr>
						<td align="right" bgcolor="#ffffff">&nbsp;</td>
						<td colspan="3" align="center" bgcolor="#ffffff">
							<if condition="$consignee['consignee'] and $consignee['email']">
								<input type="submit" name="submit" class="bnt_blue_1" value="{$lang.confirm_edit}" />
								<input name="button" type="button" class="bnt_blue"  onclick="if (confirm('{$lang.confirm_drop_address}'))location.href='user.php?act=drop_consignee&id={$consignee.address_id}'" value="{$lang.drop}" />
							<else/>
								<input type="submit" name="submit" class="bnt_blue_2"  value="{$lang.add_address}"/>
							</if>
							<input type="hidden" name="act" value="act_edit_address" />
							<input name="address_id" type="hidden" value="{$consignee.address_id}" />
						</td>
					</tr>
				</table>
			</form>
		</volist>
	</if>
	<!--#收货地址添加页面 -->
	
	
	
	<!--* 积分兑换-->
	<if condition="$action eq 'transform_points'">
		<h5>
			<span>{$lang.transform_points}</span>
		</h5>
		<div class="blank"></div>
		<!--{if $exchange_type eq 'ucenter'}-->
		<if condition="$exchange_type eq 'ucenter'">
			<form action="user.php" method="post" name="transForm" onsubmit="return calcredit();">
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
					<tr>
						<th width="120" bgcolor="#FFFFFF" align="right" valign="top">{$lang.cur_points}:</th>
						<td bgcolor="#FFFFFF">
							<label for="pay_points">{$lang.exchange_points.1}:</label>
							<input type="text" size="15" id="pay_points" name="pay_points" value="{$shop_points.pay_points}" style="border:0;border-bottom:1px solid #DADADA;" readonly="readonly" /><br />
							<div class="blank"></div>
							<label for="rank_points">{$lang.exchange_points.0}:</label>
							<input type="text" size="15" id="rank_points" name="rank_points" value="{$shop_points.rank_points}" style="border:0;border-bottom:1px solid #DADADA;" readonly="readonly" />
						</td>
					</tr>
					<tr>
						<td bgcolor="#FFFFFF">&nbsp;</td>
						<td bgcolor="#FFFFFF">&nbsp;</td>
					</tr>
					<tr>
						<th align="right" bgcolor="#FFFFFF">
							<label for="amount">{$lang.exchange_amount}:</label>
						</th>
						<td bgcolor="#FFFFFF">
							<input size="15" name="amount" id="amount" value="0" onkeyup="calcredit();" type="text" />
							<select name="fromcredits" id="fromcredits" onchange="calcredit();">
								{html_options options=$lang.exchange_points selected=$selected_org}
							</select>
						</td>
					</tr>
					<tr>
						<th align="right" bgcolor="#FFFFFF"><label for="desamount">{$lang.exchange_desamount}:</label></th>
						<td bgcolor="#FFFFFF">
							<input type="text" name="desamount" id="desamount" disabled="disabled" value="0" size="15" />
							<select name="tocredits" id="tocredits" onchange="calcredit();">
								{html_options options=$to_credits_options selected=$selected_dst}
							</select>
						</td>
					</tr>
					<tr>
						<th align="right" bgcolor="#FFFFFF">{$lang.exchange_ratio}:</th>
						<td bgcolor="#FFFFFF">
							1 <span id="orgcreditunit">{$orgcreditunit}</span>
							<span id="orgcredittitle">{$orgcredittitle}</span> 
							{$lang.exchange_action} 
							<span id="descreditamount">{$descreditamount}</span> 
							<span id="descreditunit">{$descreditunit}</span> 
							<span id="descredittitle">{$descredittitle}</span>
						</td>
					</tr>
					<tr>
						<td bgcolor="#FFFFFF">&nbsp;</td>
						<td bgcolor="#FFFFFF">
							<input type="hidden" name="act" value="act_transform_ucenter_points" />
							<input type="submit" name="transfrom" value="{$lang.transform}" />
						</td>
					</tr>
				</table>
			</form>	  
		<else/>
			<b>{$lang.cur_points}:</b>
			<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
				<tr>
					<td width="30%" valign="top" bgcolor="#FFFFFF">
						<table border="0">
							<volist name="bbs_points" id="item">
							<tr>
								<th>{$points.title}:</th>
								<td width="120" style="border-bottom:1px solid #DADADA;">{$points.value}</td>
							</tr>
							</volist>
						</table>
					</td>
					<td width="50%" valign="top" bgcolor="#FFFFFF">
						<table>
							<tr>
								<th>{$lang.pay_points}:</th>
								<td width="120" style="border-bottom:1px solid #DADADA;">{$shop_points.pay_points}</td>
							</tr>
							<tr>
								<th>{$lang.rank_points}:</th>
								<td width="120" style="border-bottom:1px solid #DADADA;">{$shop_points.rank_points}</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<br/>
			<b>{$lang.rule_list}:</b>
			<ul class="point clearfix">
				<volist name="rule_list" id="rule">
				<li>
					<font class="f1">·</font>"{$rule.from}" {$lang.transform} "{$rule.to}" {$lang.rate_is} {$rule.rate}
				</li>
				</volist>
			</ul>

			<form action="user.php" method="post" name="theForm">
				<table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" style="border-collapse:collapse;border:1px solid #DADADA;">
					<tr style="background:#F1F1F1;">
						<th>{$lang.rule}</th>
						<th>{$lang.transform_num}</th>
						<th>{$lang.transform_result}</th>
					</tr>
					<tr>
						<td>
							<select name="rule_index" onchange="changeRule()">
								<volist name="rule_list" id="rule" key="key">
									<option value="{$key}">{$rule.from}->{$rule.to}</option>
								</volist>
							</select>
						</td>
						<td>
							<input type="text" name="num" value="0" onkeyup="calPoints()"/>
						</td>
						<td><span id="ECS_RESULT">0</span></td>
					</tr>
					<tr>
						<td colspan="3" align="center">
							<input type="hidden" name="act" value="act_transform_points"  />
							<input type="submit" value="{$lang.transform}" />
						</td>
					</tr>
				</table>
			</form>
		</if>
	</if>
	<!--#积分兑换 -->
	</div>
</div>
</div>
</div>
<!--right end-->
</div>
